FROM openjdk:11.0.16-jre-buster

MAINTAINER liuyanxin@jkstack.com

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

RUN mkdir -p /grpc-stub

WORKDIR /grpc-stub

EXPOSE 30003

# arthas 启动需要 --init 模式 进入容器后，会需要unset JAVA_TOOL_OPTIONS

ADD ./build/libs/grpc-stub.jar ./

CMD java -jar grpc-stub.jar